import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '理赔编号',
            dataIndex: 'delayriskNo',
            width: 200,
        },
        {
            title: '物品Id',
            dataIndex: 'goodsId',
            width: 200,
        },
        {
            title: '被保险人数量',
            dataIndex: 'insurantNumber',
            width: 200,
        },
        {
            title: '未成年人数量',
            dataIndex: 'minorNumber',
            width: 200,
        },
        {
            title: '开始时间',
            dataIndex: 'startTime',
            width: 200,
        },
        {
            title: '结束时间',
            dataIndex: 'endTime',
            width: 200,
        },
        {
            title: '联系电话',
            dataIndex: 'phone',
            width: 200,
        },
        {
            title: '预约者',
            dataIndex: 'userId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'orderdetailId',
            width: 200,
        },
        {
            title: '是否申请理赔',
            dataIndex: 'isApply',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'appointmentState',
            width: 200,
        },
        {
            title: '延误险理赔审核状态（1审核中，2审核通过，3审核拒绝）',
            dataIndex: 'isCheck',
            width: 200,
        },
        {
            title: '理赔申请日期',
            dataIndex: 'applyDate',
            width: 200,
        },
        {
            title: '理赔数量',
            dataIndex: 'applyNum',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'soureType',
            width: 200,
        },
        {
            title: '理赔处理时间',
            dataIndex: 'handleDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '理赔编号',
            field: 'delayriskNo',
            component: 'Input',
            required: true,
        },
        {
            label: '物品Id',
            field: 'goodsId',
            component: 'Input',
            required: true,
        },
        {
            label: '被保险人数量',
            field: 'insurantNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '未成年人数量',
            field: 'minorNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '开始时间',
            field: 'startTime',
            component: 'Input',
            required: true,
        },
        {
            label: '结束时间',
            field: 'endTime',
            component: 'Input',
            required: true,
        },
        {
            label: '联系电话',
            field: 'phone',
            component: 'Input',
            required: true,
        },
        {
            label: '预约者',
            field: 'userId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'orderdetailId',
            component: 'Input',
            required: true,
        },
        {
            label: '是否申请理赔',
            field: 'isApply',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'appointmentState',
            component: 'Input',
            required: true,
        },
        {
            label: '延误险理赔审核状态（1审核中，2审核通过，3审核拒绝）',
            field: 'isCheck',
            component: 'Input',
            required: true,
        },
        {
            label: '理赔申请日期',
            field: 'applyDate',
            component: 'Input',
            required: true,
        },
        {
            label: '理赔数量',
            field: 'applyNum',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'soureType',
            component: 'Input',
            required: true,
        },
        {
            label: '理赔处理时间',
            field: 'handleDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
